<!--{include header}-->
<div class="login-title">
	<h1><div>&nbsp;&nbsp;</div>个性化功能</h1>
</div>

<div class="left">
	<div class="left-menu">
		<!--{include menu-diy}-->
	</div>
</div>
<div class="right">
	<div class="right-menu">
		<ul>
			<li onclick="window.location.href='/diy/keyword.php?zone=index'" <!--{if $_GET['zone'] == '' || $_GET['zone'] == 'index'}--> class=current <!--{/if}--> ><a href="/diy/keyword.php?zone=index">关键字应答</a></li>
			<li onclick="window.location.href='/diy/keyword.php?zone=welcome'" <!--{if $_GET['zone'] == 'welcome'}--> class=current <!--{/if}--> ><a href="/diy/keyword.php?zone=welcome">欢迎语</a></li>
			<li onclick="window.location.href='/diy/keyword.php?zone=noanswer'" <!--{if $_GET['zone'] == 'noanswer'}--> class=current <!--{/if}--> ><a href="/diy/keyword.php?zone=noanswer">无应答时</a></li>
		</ul>
	</div>
	<p>
		<input type="button" value="新建应答" id="add_keyword" />
		<table width=700px style="margin-left:15px;border:1px solid #ccc" cellpadding="5">
			<tr style="text-align:center;background:#d9fddd">
				<td><b>关键字</b></td>
				<td><b>回复方式</b></td>
				<td><b>操作</b></td>
			</tr>
			<!--{loop $keywords $index $one}-->
			<tr style="text-align:center" onmouseover="this.style.background='#ddd'" onmouseout="this.style.background='#fff'">
				<td>{$one['keyword']}</td>
				<td>
					<!--{if $one['type'] == 'text'}-->文本模式<!--{elseif $one['type'] == 'news'}-->图文模式<!--{else}-->多图文模式<!--{/if}-->
				</td>
				<td width="160px"><a href="#">查看</a> | <a href="#">修改</a> | <a href="#">删除</a></td>
			</tr>
			<!--{/loop}-->
		</table>
		<div class="pagestring">{$pagestring}</div>
	</p>

</div>

<div style="clear:both"></div>

<script>
	$("#add_keyword").click(function(){
        top.bwin = $.dialog({
            lock: true,
            width: 650,
            height: 500,
            title: '新建关键字应答',
            content: 'url:/ajax/ajax.php?action=dialog_add_keyword'
        });
        return false;
    });
</script>


<!--{include footer}-->